package com.liang.utils;

import com.liang.pojo.User;

import java.util.HashMap;
import java.util.Map;

public class UtilHandleUser {
    //User user--> Map<String,Object> 没用的
    private  User user;
    public Map<String,Object> HandleUser(User user){
        this.user=user;
        Map<String, Object> tempMap = new HashMap<String, Object>();
        tempMap.put("type_love_value",user.getType_love_value());
        tempMap.put("type_war_value",user.getType_war_value());
        tempMap.put("type_plot_value",user.getType_plot_value());
        tempMap.put("type_science_value",user.getType_science_value());
        tempMap.put("type_comedy_value",user.getType_comedy_value());
        tempMap.put("type_action_value",user.getType_action_value());
        tempMap.put("type_cartoon_value",user.getType_cartoon_value());
        tempMap.put("type_crime_value",user.getType_crime_value());
        tempMap.put("type_suspense_value",user.getType_suspense_value());
        tempMap.put("type_horror_value",user.getType_horror_value());
        tempMap.put("type_terror_value",user.getType_terror_value());
        tempMap.put("type_gay_value",user.getType_gay_value());
        tempMap.put("type_music_value",user.getType_music_value());
        tempMap.put("type_sg_value",user.getType_sg_value());
        tempMap.put("type_biographical_value",user.getType_biographical_value());
        tempMap.put("type_historical_value",user.getType_historical_value());
        tempMap.put("type_western_value",user.getType_western_value());
        tempMap.put("type_fantasy_value",user.getType_fantasy_value());
        tempMap.put("type_adventure_value",user.getType_adventure_value());
        tempMap.put("type_disaster_value",user.getType_disaster_value());
        tempMap.put("type_martial_value",user.getType_martial_value());
        return tempMap;
    }
}
